/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Clases;


import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;

/**
 *
 * @author BATAQUERO
 */
@ManagedBean
@ViewScoped
public class FCalificacionDesempeno implements Formato{
    
    
    
    public FCalificacionDesempeno(){
    }
    
    @PostConstruct
    public void InicializarVariables() {
        FacesContext.getCurrentInstance().getExternalContext().getSession(true);
        inicializarControladores();
        
        // Se quema el supervisor con el objetivo que cuando se haga el login se traiga dinamicamente
//        if (estudianteSelected == 0) {
//            listaEstudiantes.clear();
//            // Linea de la sesion
//            Supervisor s = supervisorJpaController.findSupervisor(3010);
//            listaEstudiantes = s.getEstudianteList();
//
//        }
    }
    
    @Override
        public void ConsultarFormato(){
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.        
        }

        @Override
        public void DiligenciarFormato() {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }

        @Override
        public void AprobarFormato() {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }

        @Override
        public void EditarFormato() {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }
    private void inicializarControladores() {
        FacesContext context = FacesContext.getCurrentInstance();
        //pruebaJpaController = (PruebaJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "pruebaJpaController");
        //estudianteJpaController = (EstudianteJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "estudianteJpaController");
//        supervisorJpaController = (SupervisorJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "supervisorJpaController");
//        //entidadJpaController = (EntidadJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "entidadJpaController");
//        //supervisorEntidadJpaController = (SupervisorEntidadJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "supervisorEntidadJpaController");
//        calificacionDesempenoJpaController = (CalificacionDesempenoJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "calificacionDesempenoJpaController");
    }

  
        
}
